package com.wangqingbo.myspringboot212.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;
import java.util.List;

/**
 * 项目的实体类，对于数据库表PROJECTINFO
 * 类的属性对应数据库中的表的字段
 */
public class ProjectInfo
{
	// 项目id
	private String projectId;
	// 项目名称
	private String projectName;
	// 项目编码
	private String projectCode;
	// 电压等级
	private String voltage;
	// 项目类型
	private String projectType;
	// 项目单位
	private String projectUnit;
	// 创建人
	private String createUser;
	// 创建时间
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date createDate;
	// 总投资
	private Long projectTotal;
	// 版本
	private int version;
	
	List<String> ids;

	/**
	 * 附件信息，关联一对多的关系
	 */
	private List<SysFileInfo> fileList;

	public String getProjectId()
	{
		return projectId;
	}

	public void setProjectId(String projectId)
	{
		this.projectId = projectId;
	}

	public String getProjectName()
	{
		return projectName;
	}

	public void setProjectName(String projectName)
	{
		this.projectName = projectName;
	}

	public String getProjectCode()
	{
		return projectCode;
	}

	public void setProjectCode(String projectCode)
	{
		this.projectCode = projectCode;
	}

	public String getVoltage()
	{
		return voltage;
	}

	public void setVoltage(String voltage)
	{
		this.voltage = voltage;
	}

	public String getProjectType()
	{
		return projectType;
	}

	public void setProjectType(String projectType)
	{
		this.projectType = projectType;
	}

	public String getProjectUnit()
	{
		return projectUnit;
	}

	public void setProjectUnit(String projectUnit)
	{
		this.projectUnit = projectUnit;
	}

	public String getCreateUser()
	{
		return createUser;
	}

	public void setCreateUser(String createUser)
	{
		this.createUser = createUser;
	}

	public Date getCreateDate()
	{
		return createDate;
	}

	public void setCreateDate(Date createDate)
	{
		this.createDate = createDate;
	}

	public Long getProjectTotal()
	{
		return projectTotal;
	}

	public void setProjectTotal(Long projectTotal)
	{
		this.projectTotal = projectTotal;
	}

	public int getVersion()
	{
		return version;
	}

	public void setVersion(int version)
	{
		this.version = version;
	}

	public List<String> getIds()
	{
		return ids;
	}

	public void setIds(List<String> ids)
	{
		this.ids = ids;
	}

	public List<SysFileInfo> getFileList() {
		return fileList;
	}

	public void setFileList(List<SysFileInfo> fileList) {
		this.fileList = fileList;
	}

	@Override
	public String toString() {
		return "ProjectInfo [projectId=" + projectId + ", projectName=" + projectName + ", projectCode=" + projectCode
				+ ", voltage=" + voltage + ", projectType=" + projectType + ", projectUnit=" + projectUnit
				+ ", createUser=" + createUser + ", createDate=" + createDate + ", projectTotal=" + projectTotal
				+ ", version=" + version + ", ids=" + ids + "]";
	}
	
	
	
}